package com.dbs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@SpringBootApplication
// 添加发现服务能力
@EnableDiscoveryClient
// 开启Feign功能
@EnableFeignClients
public class FeignApplication {

	// ribbon是需要这个配置 feign是用注解
	/*
	 * @Bean // 开启均衡负载能力
	 * 
	 * @LoadBalanced RestTemplate restTemplate() { return new RestTemplate(); }
	 */

	public static void main(String[] args) {
		SpringApplication.run(FeignApplication.class, args);
	}
}
